//
//  ZXFTitleLable.m
//  163News
//
//  Created by Eden on 26/2/16.
//  Copyright © 2016年 Eden. All rights reserved.
//

#import "ZXFTitleLable.h"

@implementation ZXFTitleLable

- (instancetype)initWithFrame:(CGRect)frame
{
    if (self = [super initWithFrame:frame]) {
        
        self.textAlignment = NSTextAlignmentCenter;
        self.userInteractionEnabled = YES;
        self.font = [UIFont systemFontOfSize:15];
    }
    
    return self;
}
-(void)setScale:(CGFloat)scale
{
    _scale = scale;
    
    
    self.textColor = [UIColor colorWithRed:scale green:0 blue:0 alpha:1.0];
    
    CGFloat rate = 0.3;
    CGFloat transformRate = 1 + scale * rate;
    self.transform = CGAffineTransformMakeScale(transformRate,transformRate);
 

}

@end
